/**
 * Created by lvlq on 16/4/24.
 */
var Sequelize = require("sequelize");
var sequelize = Util("sequelize");

module.exports = sequelize.define("prize", {
    name: {
        type: Sequelize.STRING,
        field: "name",
        allowNull: false,
        defaultValue: "",
        comment: "奖品名称"
    },
    num: {
        type: Sequelize.INTEGER,
        field: "num",
        allowNull: false,
        defaultValue: 0,
        comment: "奖品点赞数量"
    }
}, {
    comment: "奖品表"
});